/*
 * Copyright (c) 2016-2017 fulihui.com All right reserved
 * Project: information-core-170307
 * File name: Errors.java
 */

package com.fulihui.information.util;

import org.near.servicesupport.error.ServiceError;

/**
 * @author Willard.Hu on 2017/2/21 0021.
 */
public class Errors {

    private static final int CONTENT_VOTE_ERROR_PREFIX = 1000;

    public enum ContentVoteError implements ServiceError {
        HAVE_VOTE(CONTENT_VOTE_ERROR_PREFIX + 1, "已点赞"),;

        int    errcode;
        String errmsg;

        ContentVoteError(int errcode, String errmsg) {
            this.errcode = errcode;
            this.errmsg = errmsg;
        }

        @Override
        public int getErrcode() {
            return errcode;
        }

        @Override
        public String getErrmsg() {
            return errmsg;
        }
    }

}
